import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
const gateway = '/gateway/api'
const jnby = '/jnby-boot'

let outMaterial = '/api/gateway/jnby-material-center/outMaterial/api'
export const omStatistics = (params) => getAction(outMaterial + '/statistics', params) // 统计 今日上传的图片 ，昨日上传的图片 个数
export const omList = (params) => postAction(outMaterial + '/list', params) // 分类下的图片列表
export const omAddImg = (params) => postAction(outMaterial + '/addImg', params) // 新增图片
export const omAddOrUpdateClassify = (params) => postAction(outMaterial + '/addOrUpdateClassify', params) // 添加或者修改 分类
export const omAddRelation = (params) => postAction(outMaterial + '/addRelation', params) // 新增关系 (新增标签关系 或者 新增分类关系)
export const omGetClassifyTree = (params) => getAction(outMaterial + '/getClassifyTree', params) // 获取分类字典树
export const omGetImgCountAndLastCreateBy = (params) => postAction(outMaterial + '/getImgCountAndLastCreateBy', params) // 新增关系 (新增标签关系 或者 新增分类关系)
export const omGetImgUrlCodes = (params) => postAction(outMaterial + '/getImgUrlCodes', params) // 获取图片上的标签code
export const omUpdateRelation = (params) => postAction(outMaterial + '/updateRelation', params) // 修改关系 (修改标签关系 或者 修改分类关系 或者删除关系)
export const omGetCommonClassify = (params) => getAction(outMaterial + '/getCommonClassify', params) // 获取分类字典树
export const omGetLabelCountImgs = (params) => postAction(outMaterial + '/getLabelCountImgs', params) //获取标签下面的图片数量
export const omDeleteLabel = (params) => postAction(outMaterial + '/deleteLabel', params) //根据标签编码删除所有的关系信息